package com.xdf.data_transmitter.service;

import com.xdf.data_transmitter.dao.erp.UploadRecordMapper;
import com.xdf.data_transmitter.model.UploadRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UploadRecordServiceImpl implements UploadRecordService {
    @Autowired
    private UploadRecordMapper dao;

    @Override
    public int deleteByPrimaryKey(Integer iid) {
        return dao.deleteByPrimaryKey(iid);
    }

    @Override
    public int insert(UploadRecord record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(UploadRecord record) {
        return dao.insertSelective(record);
    }

    @Override
    public UploadRecord selectByPrimaryKey(Integer iid) {
        return dao.selectByPrimaryKey(iid);
    }

    @Override
    public int updateByPrimaryKeySelective(UploadRecord record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UploadRecord record) {
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public List<UploadRecord> selectLastByTableName(String upload_table) {
        return dao.selectLastByTableName(upload_table);
    }
}
